<?php
require(DIR_WS_INCLUDES . 'header.php');
?>

<?php echo $a[form] ?>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<?php
  if ($product_check['total'] < 1) {
?>
      <tr>
        <td><?php echo $a[no_product] ?></td>
      </tr>
      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      </tr>
      <tr>
        <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
          <tr class="infoBoxContents">
            <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
              <tr>
                <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                <td align="right"><?php echo $a[continue_button]; ?></td>
                <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
      <?php
      }else{
      ?>
      <tr>  <td class="messageStackSuccess">
    <?php 
    echo $a[messagestack] 
    ?></td>  </tr> 
   
  <tr>
    <td>
        
      <table border="0" width="100%" cellspacing="1" cellpadding="0">
        <tr class="componentheading">
          <td valign="top" width="70%"><?php echo $products_name; ?></td>
          <td  align="right" valign="top"><?php echo $products_price2;
if($product_info['price_period'] == '0.00'){}else{
             if ($product_info['price_period'] || $product_info['price_period'] != 0){ 
             if ($product_info['products_price'] > 0) {
             echo '(setup fee)<br>+' . $currencies->display_price($product_info['price_period'], tep_get_tax_rate($product_info['products_tax_class_id']));
             }else{
             echo $currencies->display_price($product_info['price_period'], tep_get_tax_rate($product_info['products_tax_class_id']));
             }
if($product_info[pay_period_type] == 'By Period'){
echo "Every $product_info[days_as_period] days";
}else{
echo "  $product_info[pay_period_type] ";
}
            }}
            ?>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <?php

			 if ($auction_product) { 	  ?>
			  <tr><td class="stockWarning"><?php echo TEXT_AUCTION_PRODUCT_TITLE; ?></td></tr>
			  <tr>
				<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
			  </tr>	  
			<?php } // end if 
			?>
  <tr>
    <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
  <tr>
    <td class="main">
      <table border="0" cellspacing="0" cellpadding="2" align="right" width="<?php echo SMALL_IMAGE_WIDTH + 10; ?>">
        <tr>
          <td  class="smallText">
<?php

    if (tep_not_null($product_info['products_image'])) {
?>
          
              
<script language="javascript"><!--
document.write('<?php echo $a[jscript] ?>');
//--></script>
<noscript>
<?php echo $a[image]?>
</noscript>
 <?php
          } //image true false
          ?>
          
          <?php
          if (!$auction_product) {
echo $a['points'];
}
?>
<br><br>
<?php 
if (!$auction_product) {
echo $a[affiliate]; 
}
?>
            <table width="100%">
              <tr>
            <td class="main" align="center"><?php if (!$auction_product) {
            echo $a[button_cart];
            }
            ?>
                </td></tr>
                </table>
                <?php 
                if (!$auction_product) {
                echo $products_price;
                }
                ?>
              </td>
            </tr>
          </table>
          
       <?php
       
       ?>
<p>
<?php echo $a[prod_info] ?>
<br>
<?php echo $a[prod_dimensions] ?>
<?php
echo $a['pdf'];
echo $a['file'];
echo $a['vid'];
echo $a['mp3'];
?>
</p>
<?php
echo $a['extrafields'];
?>
</td></tr></tr><td>

          <div><p><?php// echo $a[prod_info] ?></p></div>
          
          <table border="0" cellspacing="0" cellpadding="2">
            <tr>
              <td class="main" colspan="2"><?php echo $a[prod_options] ?></td>
            </tr>
<tr><td colspan="2"><table width="100%">
<?php 
include(DIR_WS_INCLUDES . 'attributes.php');
?>
        </td>
      </tr>
</table>
</td></tr>

<tr>
  <td colspan="2">
 <?php
  if (DISPLAY_EXTRA_IMAGES == 'true'){ 
if ($product_check['total'] >= 1) { 
include (DIR_WS_INCLUDES . 'products_extra_images.php'); 
} 
} 
?></td></tr>

      <tr>
        <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      </tr>
      <tr>
        <td class="main"><?php echo $a[reviews] ?></td>
      </tr>
      <tr>
        <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      </tr>

      <tr>
        <td class="main"><?php echo $a[prod_url] ?></td>
      </tr>
      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      </tr>
      <tr>
        <td align="center" class="smallText"><?php echo $a[date_details] ?></td>
      </tr>
      

<tr><td>
<div align="center">
<table class="infoBoxContents" width="70%"><tr><td>

<?php
echo $a[pricematch];
?>

 </td></tr></table></div>
</td></tr>
<?php if ($auction_product) { ?>
			</form>	
			<?php
				}
			?>
			
			
			
      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      </tr>
      <?php
				//bof added by jobonline2001@yahoo.com for auction product contribution
                                //rewriten by MarcusDesign
					if ($auction_product) {
						include_once(DIR_WS_MODULES.'/auction_bids.php');
						echo tep_draw_hidden_field('products_id', $product_info['products_id']);
                                        } else {
                                ?>
      <tr>
        <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
          <tr class="infoBoxContents">
            <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
              <tr>
                <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

                <td class="main"><?php echo $a[button_back] ?></td>
            <td class="main"><?php echo $a[button_reviews] ?></td>
     <td align="left" class="main"><?php echo $a[button_wishlist]?></td>
     
                <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
      <?php
      }
      ?>
      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      </tr>
      <tr>
        <td>
<?php
  }
?>
        </td>
      </tr>
       <?php
   if ($product_check['total'] >= 1) {
      include (DIR_WS_INCLUDES . 'products_next_previous.php');
   }
   ?>
          <tr>
            <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
          </tr>
          <tr>
            <td><?php include(DIR_WS_MODULES . FILENAME_FAMILY_PRODUCTS); ?></td>
          </tr>
        </td>
      </tr>
    </table><?php if (!$auction_product) { ?>
				</form>	
				<?php
					}
				?></td>

  </tr>
</table>
